package com.zgy.backend.bookstore.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zgy.backend.bookstore.pojo.Book;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author: renjiaxin
 * @Despcription:
 * @Date: Created in 2020/7/21 2:06
 * @Modified by:
 */
@Mapper // 都可以
// @Repository
public interface BookMapper extends BaseMapper<Book> {
    int bookCount();

    // 更新的时候直接也是以对象的方式来更新的
    int updateBookById(Book book);
}
